package com.hatricks.is.common.exception;

import cn.hutool.core.util.StrUtil;

/**
 * @packageName: com.hatricks.common.exception
 * @className: BusinessException
 * @author: yanyuhui
 * @date: 2023/1/7 21:09
 * @description:
 */
public class BusinessException extends RuntimeException {
    public BusinessException(String message) {
        super(message);
    }

    /**
     * 携带参数的返回值
     *
     * @param message 消息
     * @param args    返回值
     */
    public BusinessException(String message, Object... args) {
        super(StrUtil.format(message, args));
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }
}
